﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MachineVision.Domain
{
    public class Menu:IEntity
    {
        public string Name { get; set; }
        public string Icon { get; set; }
        public string PageUrl { get; set; }
        public string Description { get; set; }
        public bool IsMain { get; set; } 
        /// <summary>
        /// 上级id
        /// </summary>
        public int? SuperId { get; set; }

        //public Menu SuperMenu { get; set; }
        [ForeignKey("SuperId")]
        public IEnumerable<Menu> Pages { get; set; }

    }
}
